namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class CultureMap : ClassMap<CultureDataModel>
    {
        public CultureMap()
        {
            this.Table("Culture");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Assigned().Column("CultureCode");

            this.Map(x => x.CultureDesc).Column("CultureDesc");
            this.Map(x => x.IsDefault).Not.Nullable().Column("IsDefault");
        }
    }
}